package xps.and.uudaijia.userclient.data.baen;

import com.google.gson.annotations.SerializedName;

/**
 * Created by XPS on 2017/7/19.
 */

public class PrePayOrder {
    @Override
    public String toString() {
        return "PrePayOrder{" +
                "return_code='" + return_code + '\'' +
                ", return_msg='" + return_msg + '\'' +
                ", return_body=" + return_body +
                '}';
    }

    /**
     * return_code : SUCCESS
     * return_msg : 获取预支付ID成功
     * return_body : {"appId":"wx3595d9ebfe0bc446","partnerid":"1404461402","prepayid":"wx20170720135227eda254e78d0069533459","nonceStr":"dWpoq4sVb7wDci3xNImjd6s1fmZFojkF","timeStamp":1500529947,"package":"Sign=WXPay","sign":"DE9CEEDDC373D3E2A46D1880DBBA1E35"}
     */

    private String return_code;
    private String return_msg;
    private ReturnBodyBean return_body;

    public String getReturn_code() {
        return return_code;
    }

    public void setReturn_code(String return_code) {
        this.return_code = return_code;
    }

    public String getReturn_msg() {
        return return_msg;
    }

    public void setReturn_msg(String return_msg) {
        this.return_msg = return_msg;
    }

    public ReturnBodyBean getReturn_body() {
        return return_body;
    }

    public void setReturn_body(ReturnBodyBean return_body) {
        this.return_body = return_body;
    }

    public static class ReturnBodyBean {
        @Override
        public String toString() {
            return "ReturnBodyBean{" +
                    "appId='" + appId + '\'' +
                    ", partnerid='" + partnerid + '\'' +
                    ", prepayid='" + prepayid + '\'' +
                    ", nonceStr='" + nonceStr + '\'' +
                    ", timeStamp=" + timeStamp +
                    ", packageX='" + packageX + '\'' +
                    ", sign='" + sign + '\'' +
                    '}';
        }

        /**
         * appId : wx3595d9ebfe0bc446
         * partnerid : 1404461402
         * prepayid : wx20170720135227eda254e78d0069533459
         * nonceStr : dWpoq4sVb7wDci3xNImjd6s1fmZFojkF
         * timeStamp : 1500529947
         * package : Sign=WXPay
         * sign : DE9CEEDDC373D3E2A46D1880DBBA1E35
         */

        private String appId;
        private String partnerid;
        private String prepayid;
        private String nonceStr;
        private int timeStamp;
        @SerializedName("package")
        private String packageX;
        private String sign;

        public String getAppId() {
            return appId;
        }

        public void setAppId(String appId) {
            this.appId = appId;
        }

        public String getPartnerid() {
            return partnerid;
        }

        public void setPartnerid(String partnerid) {
            this.partnerid = partnerid;
        }

        public String getPrepayid() {
            return prepayid;
        }

        public void setPrepayid(String prepayid) {
            this.prepayid = prepayid;
        }

        public String getNonceStr() {
            return nonceStr;
        }

        public void setNonceStr(String nonceStr) {
            this.nonceStr = nonceStr;
        }

        public int getTimeStamp() {
            return timeStamp;
        }

        public void setTimeStamp(int timeStamp) {
            this.timeStamp = timeStamp;
        }

        public String getPackageX() {
            return packageX;
        }

        public void setPackageX(String packageX) {
            this.packageX = packageX;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }
    }
}
